<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="javascript" type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"/></script>
<script>
	function check(){
		if($('#name').val()==''){
			alert('请输入姓名')
			return false;
		}else if($('#idcard').val()==''){
			alert('请输入身份证号')
			return false;
		}
		return true;
	}
	
	$('#level').prepend("<option value=''>===请选择===</option>");
		$.post(
			"<%=path%>/ajax/findDicByType.action", 
			{
				dicType: 'DIC_DRIVERLEVEL'
			},
			function(json){
				var obj = $.parseJSON(json);
				$.each(obj.dicList,function(commentIndex, comment) {
					var dictype=comment.dictype;
					$('#level').append("<option value='"+comment.dicvalue+"'>"+comment.dicname+"</option>");
				})
			},"text"
		);
	
	var msg="${requestScope.rMsg}";
	if(msg!=""){
		alert(msg);
	}
</script>
<title>Insert title here</title>
<link href="<%=basePath%>/images/css.css" rel="stylesheet" type="text/css">
</head>

<body class="bg_003">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="201" height="30" align="center" background="<%=basePath%>/images/016.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25"><img src="<%=basePath%>/images/1.png" width="16" height="16"></td>
        <td><strong>驾驶员捆绑录入</strong></td>
      </tr>
    </table></td>
    <td align="right" background="<%=basePath%>/images/017.jpg" class="zi_006">驾驶员捆绑录入</td>
    <td width="39"><img src="<%=basePath%>/images/018.jpg" width="39" height="30"></td>
  </tr>
</table>
<form id="addForm" name="addForm" action="<%=path %>/messagecollection/addDriverInformition.action" method="post">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="298" align="center">
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
          <tr>
            <td width="15%" height="31" align="right" bgcolor="#f5f5f5"><font color='red'>*</font>姓名：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<input name="driverInformitionVo.name" type="text" id="name" size="14">
            </td>
            <td width="15%" height="31" align="right" bgcolor="#f5f5f5"><font color='red'>*</font>身份证号：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<input name="driverInformitionVo.idcard" type="text" id="idcard"  size="30">
            </td>
          </tr>
          <tr>
            <td width="15%" height="31" align="right" bgcolor="#f5f5f5">移动电话：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<input name="driverInformitionVo.mobilephone" type="text" id="mobilephone" size="14">
            </td>
            <td width="15%" height="31" align="right" bgcolor="#f5f5f5">固定电话：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<input name="driverInformitionVo.telephone" type="text" id="telephone"  size="14">
            </td>
          </tr>
          <tr>
          	<td width="15%" height="31" align="right" bgcolor="#f5f5f5">准驾车型：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<select name="driverInformitionVo.level" id="level"></select>
            </td>
          	<td width="15%" height="31" align="right" bgcolor="#f5f5f5">上岗证号：</td>
            <td width="35%" height="31" align="left" bgcolor="#f5f5f5">
            	<input name="driverInformitionVo.drivercertificate" type="text" id="driverCertificate" size="30">
            </td>
          </tr>
        </table>
          <table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50" align="center"><input type="submit" name="button" id="button" value=" 提 交 " onclick="return check();"></td>
            </tr>
          </table></td>
        <td width="1" bgcolor="#e1e1e2"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="<%=basePath%>/images/019.jpg" width="5" height="5"></td>
        <td width="100%" height="5" class="bg_002"></td>
        <td width="5" height="5"><img src="<%=basePath%>/images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</body>

</html>